//统一api
import request from '../utils/request'

//登录
function login(data) {
    return request.post('/api/login', data)
}

//注册
function register(data) {
    return request.post('/api/register', data)
}

//获取楼市资讯数据
function getRealList(data) {
    return request.post('/api/getRealList', data)
}

//获取楼市资讯数据
function getHotList(data) {
    return request.post('/api/hotHome', data)
}

//获取经纪人数据
function getBrokerList(data) {
    return request.post('/api/getBroker', data)
}

//获取二手房数据
function getResoldList(data) {
    return request.post('/api/getResoldHome', data)
}

export {
    login,
    register,
    getRealList,
    getHotList,
    getBrokerList,
    getResoldList
}